import routes from "./routes.js";
import {createRouter, createWebHashHistory} from 'vue-router'

const router = createRouter({
    history:createWebHashHistory(),
    routes
})

router.beforeEach((to, from, next)=>{
    next()
})

router.afterEach((to, from)=>{
    document.title = to.meta.title
})

export default router